package com.foreverwin.mes.meapi.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.foreverwin.mes.meapi.model.Item;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Syngna
 * @since 2020-01-13
 */
@Repository
public interface ItemMapper extends BaseMapper<Item> {

    List<Item> selectList(@Param("locale") String locale, @Param("ew") Wrapper<Item> wrapper);

    List<Item> selectPage(@Param("locale") String locale, RowBounds rowBounds, @Param("ew") Wrapper<Item> wrapper);

    Item selectById(@Param("locale") String locale, @Param("handle") String handle);
}